#include "chartstylefactory.hpp"

void ChartStyleFactory::addStyle(int id, string lt, string lc,
                                 string lw, string pt, string ps, string pi)
{
    this->_Styles.push_back(new ChartStyle(id,lt,lc,lw,pt,ps,pi));
}

BibStyle* ChartStyleFactory::CreateBibStyle()
{
    BibStyle *bs = new BibStyle();
    bs->setStyles(this->_Styles);
    return bs;
}

void ChartStyleFactory::remStyles()
{
    for(unsigned int i=this->_Styles.size(); i>0;--i)
        this->_Styles.pop_back();
}
